#include "VertexAttributes.hpp"

void        changeVerticesColor(VertexAttributes* vertices, unsigned int nbVertices, const float r, const float g, const float b)
{
    for (unsigned int it = 0; it < nbVertices; it++)
    {
        vertices[it].colorR = r;
        vertices[it].colorG = g;
        vertices[it].colorB = b;
    }
}

void        changeVerticesColor(VertexAttributes** vertices, unsigned int nbVertices, const float r, const float g, const float b)
{
    for (unsigned int it = 0; it < nbVertices; it++)
    {
        vertices[it]->colorR = r;
        vertices[it]->colorG = g;
        vertices[it]->colorB = b;
    }
}
